package ys.ewp.junit;

import org.junit.Test;

import ys.ewp.po.Account;
import ys.ewp.po.Employee;

public class AccountTest extends BaseJunit {
	
	@Test
	public void saveAccount(){
		Employee e = employeeService.get(1);
		
		Account a = new Account();
		a.setAccountCode("admin");
		a.setPassword("123");
		a.setRole(0);
		a.setEmployee(e);
		
		accountService.save(a);
	}
	
	@Test
	public void login(){
		Account a = accountService.login("huangjian", "123");
		System.out.println(a);
	}
}
